package com.zp.business.service.patPrepayment;

import com.zp.business.entity.patPrepayment.bo.PatPrepaymentBo;
import com.zp.business.entity.patPrepayment.vo.PatPrepaymentVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 患者住院预交金Service接口
 *
 * @author zhang peng
 * @ date 2024-07-07
 */
public interface IPatPrepaymentService {

    /**
     * 查询患者住院预交金
     */
    PatPrepaymentVo queryById(String prepaymentId);

    /**
     * 查询患者住院预交金列表(分页)
     */
    TableDataInfo<PatPrepaymentVo> queryPageList(PatPrepaymentBo bo, PageQuery pageQuery);

    /**
     * 查询患者住院预交金列表(不分页)
     */
    List<PatPrepaymentVo> queryList(PatPrepaymentBo bo);

    /**
     * 修改患者住院预交金
     */
    Boolean insertByBo(PatPrepaymentBo bo);

    /**
     * 修改患者住院预交金
     */
    Boolean updateByBo(PatPrepaymentBo bo);

    /**
     * 校验并批量删除患者住院预交金信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 预交金退费、作废
     */
    Boolean refundApplication(String prepaymentId, String type);
}
